import { defineStore } from "pinia";

export const useGlobalStore = defineStore(
  "global",
  () => {
    // appTitle
    const appTitle = ref("MyVue3App V2.0");

    const setTitle = (title)=>{
      appTitle.value = title + ' V2.0';
    }
    return {
      appTitle,
      setTitle
    };
  },
  // {
  //   persist: true, //持久化
  // }
);
